import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';
import 'package:liuxlcommon/view/lxl_widget.dart';
import 'package:liuxlcommon/view/my_box.dart';
import 'package:love_newf/app/com/model/room_info_model.dart';
import 'package:love_newf/app/page/live/live_logic.dart';
import 'package:love_newf/value/app_const.dart';

class ChildNinePage extends StatelessWidget {
  LiveLogic logic = Get.find<LiveLogic>();

  ChildNinePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Container();
  }

  RoomInfoUserRoomVO get userRoomVO =>
      logic.roomInfo.userRoomVO ?? RoomInfoUserRoomVO();

  get topView => LRow.eazy([
        LImage.easy(userRoomVO.avatar, 26.w, 26.w, 26.w),
        LColumn.eazy([
          LText.easy(userRoomVO.nick, 12.w, fw5, Colors.white),
          LText.easy(userRoomVO.userCode, 10.w, fw5, Colors.white),
        ]),
        LText.easy("加入粉团", 10.w, fw5, Colors.white)
            .radius(10.w)
            .padding(left: 9.w, right: 9.w, top: 1.w, bottom: 1.w)
      ]).size(null, 34.w).radius(17.w).paddingAll(4.w).bgColor(0x5C000000);
}
